/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkgjeudestrategie;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.io.Serializable;
import pkgjeudestrategie.ressource.Ressource;
import javax.swing.ImageIcon;

/**
 *
 * @author Admin
 */
public abstract class Terrain extends Zoomable implements Serializable {
    public Terrain() {

        setSize(400, 400);
    }
    public abstract boolean isLiving();
    public abstract void actualizePopulation(Faction f,boolean b);
public abstract int getRessourceToInt(int i);
    public abstract boolean noSuchBuilding(int i);
    public abstract int getDepenseBatiment(int i);
public abstract Ressource[] getRessources(); 
    public abstract void timeUpgrade();
public abstract void removePopulation(int choice);
    public abstract void detruire(int i);

    public abstract void privatiser(int i);

    public abstract void nationaliser(int i);

    public abstract String getName();

    public abstract Batiment[] getBatiment();

    public abstract boolean isClicked();

    public abstract void construire(int i);

    public abstract void upgradeRessource(int i);
    public abstract int getDepenseRessource(int i);

    public abstract void setClicked(boolean b);

    public abstract int getState(int player);

    public abstract boolean isZoneInfranchissable();

    public abstract boolean isZoneLibre();

    public boolean getCapital() {
        return false;
    }

    public boolean isOccupied() {
        return false;
    }
    public int soldat(){
    return 100;
    }

   //public abstract Image getImage();

   //public abstract void setImage(Image img);


    public abstract int getquantiteDeTour();

    public void paintComponent(Graphics g) {

        g.setColor(Color.black);
        g.fillRect(0, 0, getWidth(), getHeight());

    }
}
